<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Primus</title>

<link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/style.css">
<link id="MainpageStyle" type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_80.css">
<link id="pageStyle" type="text/css" rel="stylesheet" href="/spring-GOP/css/notice/style_8030.css">

<script src="http://code.jquery.com/jquery-1.8.0.js"></script>
<script type="text/javascript" src="/spring-GOP/js/common.js"></script>
<script type="text/javascript" src="/spring-GOP/js/jquery.validate.unobtrusive.min.js"></script>
<script type="text/javascript" src="/spring-GOP/js/Request_QNA.js"></script>
<script src="http://code.jquery.com/jquery-1.8.0.js"></script>
<script type="text/javascript" src="/spring-GOP/js/common.js"></script>
<%-- 
<script type="text/javascript">

function onClick(num) {

		var hiddenField = document.createElement("input");
		hiddenField.setAttribute("type", "hidden");
		hiddenField.setAttribute("name", "num");
		hiddenField.setAttribute("value", num);

		document.listForm.appendChild(hiddenField);

		document.listForm.submit();
	}
	function onSubClick() {
		if (
<%=login%>
	) {
			location.href = "/GOP/pages/notice/qna/request_qna1.jsp";
		} else {
			alert("로그인을 하셔야 합니다.");
			location.href = "/GOP/pages/login/loginmain.jsp";
		}
	}
</script> --%>
</head>
<body>
	<!-- container -->
	<div id="container">
		<div id="content">
			<!-- <div> floating - 메인인 경우</div> -->
			<div id="main-shortCut">
				<div class="sub-main-section">
					<!-- 컨텐츠 작성 -->
					<div class="page-type3">
						<h2>
							<p>HELP DESK</p>
							Primus <span>고객센터</span>
						</h2>
					</div>
					<div class="listTab mainTab">
						<div class="ars">
							<strong>ARS : 1544-5522</strong>
							<p>상담원 연결 가능 시간 : 평일 오전 9시~오후 6시</p>
						</div>
						<ul style="height: 849px;">
							<li>
								<p class="line" style="width: 990px; display: none;"></p>
								<h3 class="tab-title">
									<a href="/spring-GOP/help/notice/list"><span
										style="width: 328px;">공지사항</span></a>
								</h3>
								<ul class="ul-tab main-tab tab-content" style="display: none;">
								</ul>
							</li>
							<li>
								<p class="line" style="width: 990px; display: none;"></p>
								<h3 class="tab-title">
									<a href="/spring-GOP/help/faq/list"><span style="width: 328px;">FAQ</span></a>
								</h3>
								<ul class="ul-tab main-tab tab-content" style="display: none;">
								</ul>
							</li>
							<li>
								<p class="line" style="width: 990px; display: block;"></p>
								<h3 class="tab-title on">
									<a><span
										style="width: 328px;">문의하기 관리</span></a>
								</h3>
								<ul class="ul-tab main-tab tab-content" style="display: block;">
									<li class="t-head">
										<h4 class="tit-tab">문의하기</h4>
									</li>
									<li>
										<div class="listTab subTab">
											<ul>
												<li>
													<h5 class="tab-title on">
														<a href="/spring-GOP/help/qna/qna_admin/list"
															tabindex="0"><span>1:1 문의하기 관리</span></a>
													</h5>
													<ul class="ul-tab sub-tab tab-content"
														style="display: block;">
														<c:choose>
															<c:when test="${cdt.count == 0 }">
																<li>게시판에 저장된 글이 없습니다.</li>
															</c:when>
															<c:otherwise>
															<table width="100%">
															<caption class="hide">문의하기 목록</caption>
															<thead class="notice-thead">
																<tr>
																	<th scope="col" class="table-head1">번호</th>
																	<th scope="col" class="table-head2">작성자</th>
																	<th scope="col" class="table-head3">제목</th>
																	<th scope="col" class="table-head4">등록일</th>
																</tr>
															</thead>
															<tbody>
																<c:forEach var="qna1" items="${qna}">
																<tr this.style.backgroundcolor="#F4F1E9">
																	<td>${qna1.q_num}</td>
																	
																	<td>[${qna1.member_name}]
																	</td>

																	<td class="teble-content">
																	<a href="view?q_num=${qna1.q_num}">
																			${qna1.subject}</td>
																	<td>${qna1.regdate }</td>
																</tr>
																</c:forEach>
																<tr class="inquiry-tel">
																	<th scope="row"></th>
																	<td></td>
																</tr>
																</tbody>
															</table>
														</c:otherwise>
												</c:choose>
<%--  														
 														
 														
															<c:choose>
																<c:when test="${cdt.count > 0}">
															if (count > 0) {
															
																	<c:when test="${cdt.endpage > cdt.pageCount}">
																if (endPage > pageCount)
																
																	endPage = pageCount;
																
																	<c:when test="${cdt.startPage > cdt.pageBlock}">
																if (startPage > pageBlock) {
																	//검색일 경우와 아닐 경우 페이지 처리
																	
																	<c:when test="${cdt.content == null}">
																if (searchText == null) {
																	<a href="list?pageNum=${cdt.pageNum1}">[이전]</a>
																	</c:when>
																	
																	
																	<c:otherwise>
																} else {
														
														<a href="list?pageNum=${cdt.pageNum1}&searchWhat=${cdt.what}&searchText=${cdt.content}">[이전]</a>
																</c:otherwise>
																</c:when>														
															}
																}
																
																<c:forEach var="i" begin="${cdt.startPage}" end="${cdt.endPage}" step="1">
																
																for (int i = startPage; i <= endPage; i++) {
																	//검색일 경우와 아닐 경우 페이지 처리
																	
																	<c:when test="${cdt.content ==null}">
																	if (searchText == null) {
														
														<a
															href="list?pageNum=${i}">| ${i} |
														</a>
														</c:when>
														<c:otherwise>
															} else {
														
														<a
															href="list?pageNum=${i}&searchWhat=${cdt.what}&searchText=${cdt.content}">${i}</a>
														
															}
															</c:otherwise>
																</c:forEach>
																
																<c:when test="${cdt.endPage < cdt.pageCount}">
																if (endPage < pageCount) {
																	//검색일 경우와 아닐 경우 페이지 처리
																	
																	<c:when test="${cdt.content == null }">
																	if (searchText == null) {
														
														<a
															href="list?pageNum=${cdt.pageNum1}">[다음]</a>
														</c:when>
														<c:otherwise>
															} else {
														
														<a
															href="list?pageNum=${cdt.pageNum1}&searchWhat=${cdt.what}&searchText=${cdt.content}">[다음]</a>
														
															}
															</c:otherwise>
																}
															</c:when>	
															}
														</c:when>
														</c:when>
														</c:choose>
														
														
 --%>														
														<!--  검색창 메뉴 시작  -->
														<form
															action="list"
															class="mouse_over" method="post">
															<select name="searchWhat" class="select_box"
																style="border: 1px solid rgb(204, 204, 204); background-position: 135px 50%;">
																<option value="member_name" selected="">작성자</option>
																<option value="subject">제목</option>
																<option value="content">내용</option>
															</select>

															<!--  검색창 메뉴 끝  -->
															<input type="text" name="searchText" size=50 class="search_input" /> 
															<input type="submit" value="검색" class="button h29 w120 gray"/>
															<a href="/spring-GOP/help/qna/qna_user/insert" class="button h29 w120 gray"><b>Q&A 모드</b></a>
															<a href="/spring-GOP/help/qna/qna_admin/list" class="button h29 w120 orange"><b>전체보기</b></a>
														</form>
													</ul>
												</li>
												<li>
													<h5 class="tab-title">
														<a href="/spring-GOP/help/qna/qna_admin/list1"><span>광고 및 제휴문의 관리</span></a>
													</h5>
													<ul class="ul-tab sub-tab tab-content"
														style="display: none;">
														<!-- tab-cont -->
													</ul>
												</li>
												<li>
													<ul class="ul-tab sub-tab tab-content"
														style="display: none;">
														<!-- tab-cont -->
													</ul>
												</li>
											</ul>
										</div>
									</li>
								</ul>
							</li>
						</ul>
					</div>
					<!--//listTab mainTab-->

				</div>
			</div>
		</div>
	</div>
	</div>
</body>
</html>
